<? $cnt = count($recommended); ?>

<div id="banner">


    <ul class="rslides">

        <? for ($i = 0; $i < $cnt; $i++): ?>
                <li>
                    <?
                    $obj_name = URLify::filter($recommended[$i]->object_name);
                    $href = lang_url('accommodation/' . $obj_name . '-' . $recommended[$i]->object_ID . '?preview=1&room_id=' . $recommended[$i]->lowest_price_room_id);
                    $thumbnail = HOST_URL_HOTELS . 'gallery/' . $recommended[$i]->photo_path . '/thumb_581x342/' . $recommended[$i]->photo_name;

                    $stars = (int) $recommended[$i]->object_number_of_stars;
                    ?>



                    <div class="info">

                        <div class="title">Recommended!</div>

                    </div>

                    <div class="bottom">

                        <div class="black">

                            <div class="clearfix">
                                <? if ($stars > 0): ?>
                                    <div class="stars large star-<?= $stars ?>"></div>
                                <? endif; ?>

                                <h3><?= $recommended[$i]->object_name ?></h3>
                            </div>

                            <div class="price"><?= currency_sign() ?> <?= round($recommended[$i]->lowest_price) ?> 
                                <span class="per_person"> /
                                    <?
                                    $selling_type = lang('room.selling_type_short');
                                    echo $selling_type[(int) $recommended[$i]->lowest_selling_billing_type_ID];
                                    ?></span>
                            </div>

                        </div>

                        <a href="<?= $href ?>" class="more_info"><?= lang('click_for_more_info'); ?>...</a>

                    </div>

                                                    <!--<img src="assets/img/hotel-splendid-budva.jpg"  />--> 

                    <img src="<?= $thumbnail ?>" alt="<?= $recommended[$i]->object_name ?>" /> 

                </li>

            <? endfor; ?> 

    </ul>
</div>